home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 100
/
100.d81
/
oogle boogle
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
2KB
|
62 lines
5 dv=peek(186):ifdv<8thendv=8
10 poke53281,0:poke53280,0:dimb$(3,16):r=rnd(-ti)
20 open2,dv,2,"ob list"
22 get#2,a$,a$
24 fori=0to2:forj=0to15
26 input#2,b$(i,j)
28 next:next:close2
30 x(0)=1:x(1)=15:x(2)=27
40 goto100
50 fori=0to2:print"[155]":forj=0to15
52 printtab(x(i))b$(i,j)
54 next:next:return
100 print"[147][129] [207][207][199][204][197] [194][207][207][199][204][197] [199][197][206][197][210][193][212][207][210]"
110 print" [198]rom the mind of [198]rank [214]anaman"
120 gosub50
150 print"[159] [213]se [195][210][211][210] keys[159] and [211][208][193][195][197][159] to highlight
152 [153]" one word in each column. (NULL)ress (NULL)open for
154 print" a random pick. [208]ress [209][159] to quit."
200 x=0:y=0:f(0)=0:f(1)=0:f(2)=0:w$(0)="":w$(1)="":w$(2)=""
210 iff(0)+f(1)+f(2)=3then300
215 poke214,3+y:print:printtab(x(x))""b$(x,y)"[145]"
220 poke198,0
230 geta$:ifa$=""then230
232 ifw$(x)=b$(x,y)thenprinttab(x(x))"[158]"b$(x,y):goto240
234 printtab(x(x))"[155]"b$(x,y)
238 ifa$="r"then400
240 ifa$="q"then500
242 ifa$<>" "then250
244 iff(x)then247
246 printtab(x(x))"[145][158]"b$(x,y):f(x)=1:w$(x)=b$(x,y)
247 x=x+1:ifx>2thenx=0
248 goto210
250 ifa$="[145]"theny=y-1:ify<0theny=15
260 ifa$=""theny=y+1:ify>15theny=0
270 ifa$=""thenx=x+1:ifx>2thenx=0
280 ifa$="[157]"thenx=x-1:ifx<0thenx=2
290 goto210
300 fori=20to23:poke781,i:sys59903:next
310 poke214,20:print
320 print"[154] [193]s an [207]ogle [194]oogler, you may now say
330 ww$[178]w$(0)[170]" "[170]w$(1)[170]" "[170]w$(2)
335 [153][163]19[171]([195](ww$)[173]2))"open"ww$
340 [153]" contand be thought of as wise and smart."
345 [153][163]14)"(NULL)ress a key"
350 [151]198,0
360 [161]a$:[139]a$[178]""[167]360
370 [137]100
400 [141]50
410 [129]i[178]0[164]2:r[178][181]([187](1)[172]15)
420 [151]214,3[170]r:[153]:[153][163]x(i))"sys"b$(i,r)
430 w$(i)[178]b$(i,r)
440 [130]
450 [137]300
500 [129]i[178]8[164]9:[159]15,i,15,"r0:hello connect=hello connect":[132]15,er:[160]15
510 [139]er[178]63[167]dv[178]i:i[178]9:[130]:[137]530
520 [130]:[153]"load":[128]
530 [153]"loadstopload"[199](34)"hello connect"[199](34)","dv
540 [153]"run"
550 [151]631,13:[151]632,13:[151]198,2:[128]
999 [137]999
10000 [159]15,8,15,"s0:oogle boogle":[160]15:[148]"oogle boogle",8:[128]